\hypertarget{a00095}{}\section{E\+:/knet-\/git/knet/knet/rpc\+\_\+object.c 文件参考}
\label{a00095}\index{E\+:/knet-\/git/knet/knet/rpc\+\_\+object.\+c@{E\+:/knet-\/git/knet/knet/rpc\+\_\+object.\+c}}
{\ttfamily \#include \char`\"{}rpc\+\_\+object.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}hash.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}stream.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}misc.\+h\char`\"{}}\\*
\subsection*{结构体}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{a00043}{krpc\+\_\+object\+\_\+header\+\_\+t}
\item 
struct \hyperlink{a00019}{\+\_\+krpc\+\_\+number\+\_\+t}
\item 
struct \hyperlink{a00021}{\+\_\+krpc\+\_\+string\+\_\+t}
\item 
struct \hyperlink{a00024}{\+\_\+krpc\+\_\+vector\+\_\+t}
\item 
struct \hyperlink{a00023}{\+\_\+krpc\+\_\+value\+\_\+t}
\item 
struct \hyperlink{a00018}{\+\_\+krpc\+\_\+map\+\_\+t}
\item 
struct \hyperlink{a00020}{\+\_\+krpc\+\_\+object\+\_\+t}
\end{DoxyCompactItemize}
\subsection*{类型定义}
\begin{DoxyCompactItemize}
\item 
typedef struct \hyperlink{a00043}{krpc\+\_\+object\+\_\+header\+\_\+t} \hyperlink{a00095_a12a12afbc4f5962e88fac9bfadc68c56_a12a12afbc4f5962e88fac9bfadc68c56}{krpc\+\_\+object\+\_\+header\+\_\+t}
\end{DoxyCompactItemize}
\subsection*{函数}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$ \hyperlink{a00119_ga6aad58d8460944596e39822181bf4848_ga6aad58d8460944596e39822181bf4848}{krpc\+\_\+object\+\_\+create} ()
\begin{DoxyCompactList}\small\item\em 所有set类方法调用时确定krpc\+\_\+object\+\_\+t实际类型，类型一旦确定不能再次更改 \end{DoxyCompactList}\item 
void \hyperlink{a00119_ga8bb578f8ba5a8de682a1fe2a4c8a20f6_ga8bb578f8ba5a8de682a1fe2a4c8a20f6}{krpc\+\_\+object\+\_\+destroy} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 销毁\+R\+P\+C对象 \end{DoxyCompactList}\item 
int \hyperlink{a00119_gac0a05f116ee7164ceebf6f7fabcf46cf_gac0a05f116ee7164ceebf6f7fabcf46cf}{krpc\+\_\+object\+\_\+check\+\_\+type} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, \hyperlink{a00056_a6fe1ebc0ddea56dd3c337115c1e10bc4_a6fe1ebc0ddea56dd3c337115c1e10bc4}{knet\+\_\+rpc\+\_\+type\+\_\+e} type)
\begin{DoxyCompactList}\small\item\em 测试\+R\+P\+C对象类型 \end{DoxyCompactList}\item 
uint16\+\_\+t \hyperlink{a00095_aaa8a155df38de3bbf2a876b94686d195_aaa8a155df38de3bbf2a876b94686d195}{krpc\+\_\+number\+\_\+get\+\_\+marshal\+\_\+size} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 获取数字对象序列化长度 \end{DoxyCompactList}\item 
uint16\+\_\+t \hyperlink{a00119_gad51ebf7392be0ee1fd9597aa22a43015_gad51ebf7392be0ee1fd9597aa22a43015}{krpc\+\_\+object\+\_\+get\+\_\+marshal\+\_\+size} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 取得序列化后的长度 \end{DoxyCompactList}\item 
int \hyperlink{a00119_ga77cc2dde006f9cdddf078289159bd514_ga77cc2dde006f9cdddf078289159bd514}{krpc\+\_\+object\+\_\+marshal} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, \hyperlink{a00056_acc208c4c40c875eebbfef88f00fffacf_acc208c4c40c875eebbfef88f00fffacf}{kstream\+\_\+t} $\ast$stream, uint16\+\_\+t $\ast$bytes)
\begin{DoxyCompactList}\small\item\em 序列化到数据流 \end{DoxyCompactList}\item 
int \hyperlink{a00119_ga32ed12c4faa68e258582b239b46fd180_ga32ed12c4faa68e258582b239b46fd180}{krpc\+\_\+object\+\_\+marshal\+\_\+buffer} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, char $\ast$buffer, uint16\+\_\+t length, uint16\+\_\+t $\ast$bytes)
\begin{DoxyCompactList}\small\item\em 序列化到缓冲区 \end{DoxyCompactList}\item 
int \hyperlink{a00119_ga3e61d7f696fd28c1cb4152037e4cc3c8_ga3e61d7f696fd28c1cb4152037e4cc3c8}{krpc\+\_\+object\+\_\+unmarshal} (\hyperlink{a00056_acc208c4c40c875eebbfef88f00fffacf_acc208c4c40c875eebbfef88f00fffacf}{kstream\+\_\+t} $\ast$stream, \hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$$\ast$o, uint16\+\_\+t $\ast$bytes)
\begin{DoxyCompactList}\small\item\em 从数据流反序列化对象 \end{DoxyCompactList}\item 
int \hyperlink{a00119_ga0f2289e356949bc9ae0e8e0a151e42f4_ga0f2289e356949bc9ae0e8e0a151e42f4}{krpc\+\_\+object\+\_\+unmarshal\+\_\+buffer} (char $\ast$buffer, uint16\+\_\+t size, \hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$$\ast$o, uint16\+\_\+t $\ast$bytes)
\begin{DoxyCompactList}\small\item\em 从缓冲区反序列化对象 \end{DoxyCompactList}\item 
void \hyperlink{a00119_gac97afef390289879f19cda9149beb684_gac97afef390289879f19cda9149beb684}{krpc\+\_\+number\+\_\+set\+\_\+i8} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, int8\+\_\+t i8)
\begin{DoxyCompactList}\small\item\em 设置数字 \end{DoxyCompactList}\item 
int8\+\_\+t \hyperlink{a00119_ga5f14e2a44d3dd64fc1bc54e28b431587_ga5f14e2a44d3dd64fc1bc54e28b431587}{krpc\+\_\+number\+\_\+get\+\_\+i8} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 获取有符号8位 \end{DoxyCompactList}\item 
void \hyperlink{a00119_ga1b6cbaa51e2171bec6e5b2f97fe6223c_ga1b6cbaa51e2171bec6e5b2f97fe6223c}{krpc\+\_\+number\+\_\+set\+\_\+i16} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, int16\+\_\+t i16)
\begin{DoxyCompactList}\small\item\em 设置数字 \end{DoxyCompactList}\item 
int16\+\_\+t \hyperlink{a00119_ga090dd58301d21979a05fe6fc249e3a80_ga090dd58301d21979a05fe6fc249e3a80}{krpc\+\_\+number\+\_\+get\+\_\+i16} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 获取有符号16位 \end{DoxyCompactList}\item 
void \hyperlink{a00119_gaf70d32f6fb59d76e67e596d0feeee14b_gaf70d32f6fb59d76e67e596d0feeee14b}{krpc\+\_\+number\+\_\+set\+\_\+i32} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, int32\+\_\+t i32)
\begin{DoxyCompactList}\small\item\em 设置数字 \end{DoxyCompactList}\item 
int32\+\_\+t \hyperlink{a00119_gad287178bafa8b9495016ee747db8e090_gad287178bafa8b9495016ee747db8e090}{krpc\+\_\+number\+\_\+get\+\_\+i32} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 获取有符号32位 \end{DoxyCompactList}\item 
void \hyperlink{a00119_gabf92e2dab46131d75789812059214724_gabf92e2dab46131d75789812059214724}{krpc\+\_\+number\+\_\+set\+\_\+i64} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, int64\+\_\+t i64)
\begin{DoxyCompactList}\small\item\em 设置数字 \end{DoxyCompactList}\item 
int64\+\_\+t \hyperlink{a00119_ga41bb57b2a053c9aeb22c98e0cbfbc2e4_ga41bb57b2a053c9aeb22c98e0cbfbc2e4}{krpc\+\_\+number\+\_\+get\+\_\+i64} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 获取有符号64位 \end{DoxyCompactList}\item 
void \hyperlink{a00119_ga0abbc84b15e73781209485cbfa4d2a56_ga0abbc84b15e73781209485cbfa4d2a56}{krpc\+\_\+number\+\_\+set\+\_\+ui8} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, uint8\+\_\+t ui8)
\begin{DoxyCompactList}\small\item\em 设置数字 \end{DoxyCompactList}\item 
uint8\+\_\+t \hyperlink{a00119_ga921ba1649bda27068e3d048b854ed708_ga921ba1649bda27068e3d048b854ed708}{krpc\+\_\+number\+\_\+get\+\_\+ui8} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 获取无符号8位 \end{DoxyCompactList}\item 
void \hyperlink{a00119_ga7990cb68203c5ab0d1534ef616fd1aad_ga7990cb68203c5ab0d1534ef616fd1aad}{krpc\+\_\+number\+\_\+set\+\_\+ui16} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, uint16\+\_\+t ui16)
\begin{DoxyCompactList}\small\item\em 设置数字 \end{DoxyCompactList}\item 
uint16\+\_\+t \hyperlink{a00119_gaa2f3b1c450f36d181e585924ff7954a5_gaa2f3b1c450f36d181e585924ff7954a5}{krpc\+\_\+number\+\_\+get\+\_\+ui16} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 获取无符号16位 \end{DoxyCompactList}\item 
void \hyperlink{a00119_gaf864070d7b20a77c9191acbe49f9382f_gaf864070d7b20a77c9191acbe49f9382f}{krpc\+\_\+number\+\_\+set\+\_\+ui32} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, uint32\+\_\+t ui32)
\begin{DoxyCompactList}\small\item\em 设置数字 \end{DoxyCompactList}\item 
uint32\+\_\+t \hyperlink{a00119_gabc1d9560a6f2baf606c4a232488ee76a_gabc1d9560a6f2baf606c4a232488ee76a}{krpc\+\_\+number\+\_\+get\+\_\+ui32} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 获取无符号32位 \end{DoxyCompactList}\item 
void \hyperlink{a00119_gafd0da43f7cb46188c6d2f1657b39c3ba_gafd0da43f7cb46188c6d2f1657b39c3ba}{krpc\+\_\+number\+\_\+set\+\_\+ui64} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, int64\+\_\+t ui64)
\begin{DoxyCompactList}\small\item\em 设置数字 \end{DoxyCompactList}\item 
uint64\+\_\+t \hyperlink{a00119_ga951b99916dd94a6d8c5ad335578c35d7_ga951b99916dd94a6d8c5ad335578c35d7}{krpc\+\_\+number\+\_\+get\+\_\+ui64} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 获取无符号64位 \end{DoxyCompactList}\item 
void \hyperlink{a00119_ga0e16d4b0c82cb88b148e82bc076a840c_ga0e16d4b0c82cb88b148e82bc076a840c}{krpc\+\_\+number\+\_\+set\+\_\+f32} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, \hyperlink{a00056_a24938fa843048398799e12d52d3e3693_a24938fa843048398799e12d52d3e3693}{float32\+\_\+t} f32)
\begin{DoxyCompactList}\small\item\em 设置数字 \end{DoxyCompactList}\item 
\hyperlink{a00056_a24938fa843048398799e12d52d3e3693_a24938fa843048398799e12d52d3e3693}{float32\+\_\+t} \hyperlink{a00119_gaa646cc26fc434789e5d4a58ec39a99fa_gaa646cc26fc434789e5d4a58ec39a99fa}{krpc\+\_\+number\+\_\+get\+\_\+f32} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 获取浮点数32位 \end{DoxyCompactList}\item 
void \hyperlink{a00119_ga8aeb77dbdf5aaab4bb75f57ee0ddd8b9_ga8aeb77dbdf5aaab4bb75f57ee0ddd8b9}{krpc\+\_\+number\+\_\+set\+\_\+f64} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, \hyperlink{a00056_a584460dce5c6f292dfffb0e7fbca0842_a584460dce5c6f292dfffb0e7fbca0842}{float64\+\_\+t} f64)
\begin{DoxyCompactList}\small\item\em 设置数字 \end{DoxyCompactList}\item 
\hyperlink{a00056_a584460dce5c6f292dfffb0e7fbca0842_a584460dce5c6f292dfffb0e7fbca0842}{float64\+\_\+t} \hyperlink{a00119_ga000db715b85193d0b6750b46bfc590b5_ga000db715b85193d0b6750b46bfc590b5}{krpc\+\_\+number\+\_\+get\+\_\+f64} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 获取浮点数64位 \end{DoxyCompactList}\item 
void \hyperlink{a00119_ga6985230e52d14d9e6d1f0de75a7c2f93_ga6985230e52d14d9e6d1f0de75a7c2f93}{krpc\+\_\+string\+\_\+set} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, const char $\ast$s)
\begin{DoxyCompactList}\small\item\em 设置字符串 \end{DoxyCompactList}\item 
void \hyperlink{a00119_ga478faec6f30727235d29aaeb8d54f22f_ga478faec6f30727235d29aaeb8d54f22f}{krpc\+\_\+string\+\_\+set\+\_\+s} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, const char $\ast$s, uint16\+\_\+t size)
\begin{DoxyCompactList}\small\item\em 设置字符串 \end{DoxyCompactList}\item 
int \hyperlink{a00095_af0d124108915f859d85fccd58facf12f_af0d124108915f859d85fccd58facf12f}{krpc\+\_\+string\+\_\+set\+\_\+size} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, uint16\+\_\+t size)
\begin{DoxyCompactList}\small\item\em 设置字符串长度 \end{DoxyCompactList}\item 
const char $\ast$ \hyperlink{a00119_ga4cbbacb71688aa9ee2c5811076132bce_ga4cbbacb71688aa9ee2c5811076132bce}{krpc\+\_\+string\+\_\+get} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 获取字符串指针 \end{DoxyCompactList}\item 
uint16\+\_\+t \hyperlink{a00119_ga1de7973df219a3f8d3f466d27ba8c080_ga1de7973df219a3f8d3f466d27ba8c080}{krpc\+\_\+string\+\_\+get\+\_\+size} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 获取字符串长度，包含结尾符 \end{DoxyCompactList}\item 
void \hyperlink{a00095_a13be7946c84baeebe93977ef511e125f_a13be7946c84baeebe93977ef511e125f}{krpc\+\_\+vector\+\_\+enlarge} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 扩展数组 \end{DoxyCompactList}\item 
int \hyperlink{a00119_gac870fa910b5e155c9f566ead4fac2b54_gac870fa910b5e155c9f566ead4fac2b54}{krpc\+\_\+vector\+\_\+push\+\_\+back} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$v, \hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 添加到数组尾，数组默认长度为8，每次递增8 \end{DoxyCompactList}\item 
uint32\+\_\+t \hyperlink{a00119_gac86bb807e52193aaa69ce6fe36cd59c8_gac86bb807e52193aaa69ce6fe36cd59c8}{krpc\+\_\+vector\+\_\+get\+\_\+size} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$v)
\begin{DoxyCompactList}\small\item\em 取得数组元素个数 \end{DoxyCompactList}\item 
\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$ \hyperlink{a00119_ga0291a0548378269354fc614712f4c31e_ga0291a0548378269354fc614712f4c31e}{krpc\+\_\+vector\+\_\+get} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$v, int index)
\begin{DoxyCompactList}\small\item\em 按索引取得数组元素 \end{DoxyCompactList}\item 
int \hyperlink{a00119_gaf08956a35d983893f382974abcfca177_gaf08956a35d983893f382974abcfca177}{krpc\+\_\+vector\+\_\+set} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$v, \hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, int index)
\begin{DoxyCompactList}\small\item\em 按索引设置数组元素，若已存在元素则销毁旧元素 \end{DoxyCompactList}\item 
void \hyperlink{a00119_ga02d5eeffe865f129911f42ffbfa0d119_ga02d5eeffe865f129911f42ffbfa0d119}{krpc\+\_\+vector\+\_\+clear} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$v)
\begin{DoxyCompactList}\small\item\em 清空数组 \end{DoxyCompactList}\item 
void \hyperlink{a00095_a79b7c0edd0ee7a8c462d19881589f701_a79b7c0edd0ee7a8c462d19881589f701}{hash\+\_\+value\+\_\+dtor} (void $\ast$v)
\begin{DoxyCompactList}\small\item\em 表值销毁函数 \end{DoxyCompactList}\item 
int \hyperlink{a00119_ga252615bf3ff115656c3c155a7c9fafaf_ga252615bf3ff115656c3c155a7c9fafaf}{krpc\+\_\+map\+\_\+insert} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$m, \hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$k, \hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$v)
\begin{DoxyCompactList}\small\item\em 添加$<$k, v$>$ \end{DoxyCompactList}\item 
int \hyperlink{a00119_gace78d56aa68df141f3cfa90ecf012b81_gace78d56aa68df141f3cfa90ecf012b81}{krpc\+\_\+map\+\_\+update} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$m, \hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$k, \hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$v)
\begin{DoxyCompactList}\small\item\em 更新$<$k, v$>$，如果k不存在则插入 \end{DoxyCompactList}\item 
\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$ \hyperlink{a00119_ga87ce3d17030c66e3264fa2e026bfaf33_ga87ce3d17030c66e3264fa2e026bfaf33}{krpc\+\_\+map\+\_\+get} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$m, \hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$k)
\begin{DoxyCompactList}\small\item\em 查找 \end{DoxyCompactList}\item 
uint32\+\_\+t \hyperlink{a00119_gad760f8fec813dab474ac011d7aab1e7e_gad760f8fec813dab474ac011d7aab1e7e}{krpc\+\_\+map\+\_\+get\+\_\+size} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$m)
\begin{DoxyCompactList}\small\item\em 取得表$<$kev, value$>$个数 \end{DoxyCompactList}\item 
int \hyperlink{a00119_gad894af3d72e3ae9629ebd724534dae7f_gad894af3d72e3ae9629ebd724534dae7f}{krpc\+\_\+map\+\_\+get\+\_\+first} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$m, \hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$$\ast$k, \hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$$\ast$v)
\begin{DoxyCompactList}\small\item\em 重置遍历器并取第一个$<$key, value$>$ \end{DoxyCompactList}\item 
int \hyperlink{a00119_gaa818187b224d2ec13b5b1a25badc3fe3_gaa818187b224d2ec13b5b1a25badc3fe3}{krpc\+\_\+map\+\_\+next} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$m, \hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$$\ast$k, \hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$$\ast$v)
\begin{DoxyCompactList}\small\item\em 取下一个未遍历的$<$key, value$>$ \end{DoxyCompactList}\item 
void \hyperlink{a00119_ga76c5ca67a568d6e6634a57c3be742b2c_ga76c5ca67a568d6e6634a57c3be742b2c}{krpc\+\_\+map\+\_\+clear} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$m)
\begin{DoxyCompactList}\small\item\em 清空表 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{类型定义说明}
\hypertarget{a00095_a12a12afbc4f5962e88fac9bfadc68c56_a12a12afbc4f5962e88fac9bfadc68c56}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+object\+\_\+header\+\_\+t@{krpc\+\_\+object\+\_\+header\+\_\+t}}
\index{krpc\+\_\+object\+\_\+header\+\_\+t@{krpc\+\_\+object\+\_\+header\+\_\+t}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+object\+\_\+header\+\_\+t}]{\setlength{\rightskip}{0pt plus 5cm}typedef struct {\bf krpc\+\_\+object\+\_\+header\+\_\+t}  {\bf krpc\+\_\+object\+\_\+header\+\_\+t}}\label{a00095_a12a12afbc4f5962e88fac9bfadc68c56_a12a12afbc4f5962e88fac9bfadc68c56}


\subsection{函数说明}
\hypertarget{a00095_a79b7c0edd0ee7a8c462d19881589f701_a79b7c0edd0ee7a8c462d19881589f701}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!hash\+\_\+value\+\_\+dtor@{hash\+\_\+value\+\_\+dtor}}
\index{hash\+\_\+value\+\_\+dtor@{hash\+\_\+value\+\_\+dtor}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{hash\+\_\+value\+\_\+dtor}]{\setlength{\rightskip}{0pt plus 5cm}void hash\+\_\+value\+\_\+dtor (
\begin{DoxyParamCaption}
\item[{void $\ast$}]{v}
\end{DoxyParamCaption}
)}\label{a00095_a79b7c0edd0ee7a8c462d19881589f701_a79b7c0edd0ee7a8c462d19881589f701}


表值销毁函数 

\hypertarget{a00119_ga76c5ca67a568d6e6634a57c3be742b2c_ga76c5ca67a568d6e6634a57c3be742b2c}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+map\+\_\+clear@{krpc\+\_\+map\+\_\+clear}}
\index{krpc\+\_\+map\+\_\+clear@{krpc\+\_\+map\+\_\+clear}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+map\+\_\+clear}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+map\+\_\+clear (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{m}
\end{DoxyParamCaption}
)}\label{a00119_ga76c5ca67a568d6e6634a57c3be742b2c_ga76c5ca67a568d6e6634a57c3be742b2c}


清空表 


\begin{DoxyParams}{参数}
{\em m} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\hypertarget{a00119_ga87ce3d17030c66e3264fa2e026bfaf33_ga87ce3d17030c66e3264fa2e026bfaf33}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+map\+\_\+get@{krpc\+\_\+map\+\_\+get}}
\index{krpc\+\_\+map\+\_\+get@{krpc\+\_\+map\+\_\+get}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+map\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf krpc\+\_\+object\+\_\+t}$\ast$ krpc\+\_\+map\+\_\+get (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{m, }
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{k}
\end{DoxyParamCaption}
)}\label{a00119_ga87ce3d17030c66e3264fa2e026bfaf33_ga87ce3d17030c66e3264fa2e026bfaf33}


查找 


\begin{DoxyParams}{参数}
{\em m} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em k} & key \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em krpc\+\_\+object\+\_\+t实例} & \\
\hline
{\em 0} & 未找到 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00119_gad894af3d72e3ae9629ebd724534dae7f_gad894af3d72e3ae9629ebd724534dae7f}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+map\+\_\+get\+\_\+first@{krpc\+\_\+map\+\_\+get\+\_\+first}}
\index{krpc\+\_\+map\+\_\+get\+\_\+first@{krpc\+\_\+map\+\_\+get\+\_\+first}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+map\+\_\+get\+\_\+first}]{\setlength{\rightskip}{0pt plus 5cm}int krpc\+\_\+map\+\_\+get\+\_\+first (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{m, }
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$$\ast$}]{k, }
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$$\ast$}]{v}
\end{DoxyParamCaption}
)}\label{a00119_gad894af3d72e3ae9629ebd724534dae7f_gad894af3d72e3ae9629ebd724534dae7f}


重置遍历器并取第一个$<$key, value$>$ 


\begin{DoxyParams}{参数}
{\em m} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em k} & key \\
\hline
{\em v} & value \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em 0} & 没有 \\
\hline
{\em 非零} & 有 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00119_gad760f8fec813dab474ac011d7aab1e7e_gad760f8fec813dab474ac011d7aab1e7e}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+map\+\_\+get\+\_\+size@{krpc\+\_\+map\+\_\+get\+\_\+size}}
\index{krpc\+\_\+map\+\_\+get\+\_\+size@{krpc\+\_\+map\+\_\+get\+\_\+size}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+map\+\_\+get\+\_\+size}]{\setlength{\rightskip}{0pt plus 5cm}uint32\+\_\+t krpc\+\_\+map\+\_\+get\+\_\+size (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{m}
\end{DoxyParamCaption}
)}\label{a00119_gad760f8fec813dab474ac011d7aab1e7e_gad760f8fec813dab474ac011d7aab1e7e}


取得表$<$kev, value$>$个数 


\begin{DoxyParams}{参数}
{\em m} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
$<$kev, value$>$个数 
\end{DoxyReturn}
\hypertarget{a00119_ga252615bf3ff115656c3c155a7c9fafaf_ga252615bf3ff115656c3c155a7c9fafaf}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+map\+\_\+insert@{krpc\+\_\+map\+\_\+insert}}
\index{krpc\+\_\+map\+\_\+insert@{krpc\+\_\+map\+\_\+insert}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+map\+\_\+insert}]{\setlength{\rightskip}{0pt plus 5cm}int krpc\+\_\+map\+\_\+insert (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{m, }
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{k, }
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{v}
\end{DoxyParamCaption}
)}\label{a00119_ga252615bf3ff115656c3c155a7c9fafaf_ga252615bf3ff115656c3c155a7c9fafaf}


添加$<$k, v$>$ 


\begin{DoxyParams}{参数}
{\em m} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em k} & key \\
\hline
{\em v} & value \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em error\+\_\+ok} & 成功 \\
\hline
{\em 其他} & 失败 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00119_gaa818187b224d2ec13b5b1a25badc3fe3_gaa818187b224d2ec13b5b1a25badc3fe3}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+map\+\_\+next@{krpc\+\_\+map\+\_\+next}}
\index{krpc\+\_\+map\+\_\+next@{krpc\+\_\+map\+\_\+next}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+map\+\_\+next}]{\setlength{\rightskip}{0pt plus 5cm}int krpc\+\_\+map\+\_\+next (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{m, }
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$$\ast$}]{k, }
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$$\ast$}]{v}
\end{DoxyParamCaption}
)}\label{a00119_gaa818187b224d2ec13b5b1a25badc3fe3_gaa818187b224d2ec13b5b1a25badc3fe3}


取下一个未遍历的$<$key, value$>$ 


\begin{DoxyParams}{参数}
{\em m} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em k} & key \\
\hline
{\em v} & value \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em 0} & 没有 \\
\hline
{\em 非零} & 有 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00119_gace78d56aa68df141f3cfa90ecf012b81_gace78d56aa68df141f3cfa90ecf012b81}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+map\+\_\+update@{krpc\+\_\+map\+\_\+update}}
\index{krpc\+\_\+map\+\_\+update@{krpc\+\_\+map\+\_\+update}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+map\+\_\+update}]{\setlength{\rightskip}{0pt plus 5cm}int krpc\+\_\+map\+\_\+update (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{m, }
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{k, }
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{v}
\end{DoxyParamCaption}
)}\label{a00119_gace78d56aa68df141f3cfa90ecf012b81_gace78d56aa68df141f3cfa90ecf012b81}


更新$<$k, v$>$，如果k不存在则插入 


\begin{DoxyParams}{参数}
{\em m} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em k} & key \\
\hline
{\em v} & value \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em error\+\_\+ok} & 成功 \\
\hline
{\em 其他} & 失败 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00119_gaa646cc26fc434789e5d4a58ec39a99fa_gaa646cc26fc434789e5d4a58ec39a99fa}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+get\+\_\+f32@{krpc\+\_\+number\+\_\+get\+\_\+f32}}
\index{krpc\+\_\+number\+\_\+get\+\_\+f32@{krpc\+\_\+number\+\_\+get\+\_\+f32}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+get\+\_\+f32}]{\setlength{\rightskip}{0pt plus 5cm}{\bf float32\+\_\+t} krpc\+\_\+number\+\_\+get\+\_\+f32 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00119_gaa646cc26fc434789e5d4a58ec39a99fa_gaa646cc26fc434789e5d4a58ec39a99fa}


获取浮点数32位 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
浮点数32位 
\end{DoxyReturn}
\hypertarget{a00119_ga000db715b85193d0b6750b46bfc590b5_ga000db715b85193d0b6750b46bfc590b5}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+get\+\_\+f64@{krpc\+\_\+number\+\_\+get\+\_\+f64}}
\index{krpc\+\_\+number\+\_\+get\+\_\+f64@{krpc\+\_\+number\+\_\+get\+\_\+f64}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+get\+\_\+f64}]{\setlength{\rightskip}{0pt plus 5cm}{\bf float64\+\_\+t} krpc\+\_\+number\+\_\+get\+\_\+f64 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00119_ga000db715b85193d0b6750b46bfc590b5_ga000db715b85193d0b6750b46bfc590b5}


获取浮点数64位 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
浮点数64位 
\end{DoxyReturn}
\hypertarget{a00119_ga090dd58301d21979a05fe6fc249e3a80_ga090dd58301d21979a05fe6fc249e3a80}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+get\+\_\+i16@{krpc\+\_\+number\+\_\+get\+\_\+i16}}
\index{krpc\+\_\+number\+\_\+get\+\_\+i16@{krpc\+\_\+number\+\_\+get\+\_\+i16}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+get\+\_\+i16}]{\setlength{\rightskip}{0pt plus 5cm}int16\+\_\+t krpc\+\_\+number\+\_\+get\+\_\+i16 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00119_ga090dd58301d21979a05fe6fc249e3a80_ga090dd58301d21979a05fe6fc249e3a80}


获取有符号16位 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
有符号16位 
\end{DoxyReturn}
\hypertarget{a00119_gad287178bafa8b9495016ee747db8e090_gad287178bafa8b9495016ee747db8e090}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+get\+\_\+i32@{krpc\+\_\+number\+\_\+get\+\_\+i32}}
\index{krpc\+\_\+number\+\_\+get\+\_\+i32@{krpc\+\_\+number\+\_\+get\+\_\+i32}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+get\+\_\+i32}]{\setlength{\rightskip}{0pt plus 5cm}int32\+\_\+t krpc\+\_\+number\+\_\+get\+\_\+i32 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00119_gad287178bafa8b9495016ee747db8e090_gad287178bafa8b9495016ee747db8e090}


获取有符号32位 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
有符号32位 
\end{DoxyReturn}
\hypertarget{a00119_ga41bb57b2a053c9aeb22c98e0cbfbc2e4_ga41bb57b2a053c9aeb22c98e0cbfbc2e4}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+get\+\_\+i64@{krpc\+\_\+number\+\_\+get\+\_\+i64}}
\index{krpc\+\_\+number\+\_\+get\+\_\+i64@{krpc\+\_\+number\+\_\+get\+\_\+i64}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+get\+\_\+i64}]{\setlength{\rightskip}{0pt plus 5cm}int64\+\_\+t krpc\+\_\+number\+\_\+get\+\_\+i64 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00119_ga41bb57b2a053c9aeb22c98e0cbfbc2e4_ga41bb57b2a053c9aeb22c98e0cbfbc2e4}


获取有符号64位 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
有符号64位 
\end{DoxyReturn}
\hypertarget{a00119_ga5f14e2a44d3dd64fc1bc54e28b431587_ga5f14e2a44d3dd64fc1bc54e28b431587}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+get\+\_\+i8@{krpc\+\_\+number\+\_\+get\+\_\+i8}}
\index{krpc\+\_\+number\+\_\+get\+\_\+i8@{krpc\+\_\+number\+\_\+get\+\_\+i8}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+get\+\_\+i8}]{\setlength{\rightskip}{0pt plus 5cm}int8\+\_\+t krpc\+\_\+number\+\_\+get\+\_\+i8 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00119_ga5f14e2a44d3dd64fc1bc54e28b431587_ga5f14e2a44d3dd64fc1bc54e28b431587}


获取有符号8位 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
有符号8位 
\end{DoxyReturn}
\hypertarget{a00095_aaa8a155df38de3bbf2a876b94686d195_aaa8a155df38de3bbf2a876b94686d195}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+get\+\_\+marshal\+\_\+size@{krpc\+\_\+number\+\_\+get\+\_\+marshal\+\_\+size}}
\index{krpc\+\_\+number\+\_\+get\+\_\+marshal\+\_\+size@{krpc\+\_\+number\+\_\+get\+\_\+marshal\+\_\+size}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+get\+\_\+marshal\+\_\+size}]{\setlength{\rightskip}{0pt plus 5cm}uint16\+\_\+t krpc\+\_\+number\+\_\+get\+\_\+marshal\+\_\+size (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00095_aaa8a155df38de3bbf2a876b94686d195_aaa8a155df38de3bbf2a876b94686d195}


获取数字对象序列化长度 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
数字对象序列化长度 
\end{DoxyReturn}
\hypertarget{a00119_gaa2f3b1c450f36d181e585924ff7954a5_gaa2f3b1c450f36d181e585924ff7954a5}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+get\+\_\+ui16@{krpc\+\_\+number\+\_\+get\+\_\+ui16}}
\index{krpc\+\_\+number\+\_\+get\+\_\+ui16@{krpc\+\_\+number\+\_\+get\+\_\+ui16}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+get\+\_\+ui16}]{\setlength{\rightskip}{0pt plus 5cm}uint16\+\_\+t krpc\+\_\+number\+\_\+get\+\_\+ui16 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00119_gaa2f3b1c450f36d181e585924ff7954a5_gaa2f3b1c450f36d181e585924ff7954a5}


获取无符号16位 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
无符号16位 
\end{DoxyReturn}
\hypertarget{a00119_gabc1d9560a6f2baf606c4a232488ee76a_gabc1d9560a6f2baf606c4a232488ee76a}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+get\+\_\+ui32@{krpc\+\_\+number\+\_\+get\+\_\+ui32}}
\index{krpc\+\_\+number\+\_\+get\+\_\+ui32@{krpc\+\_\+number\+\_\+get\+\_\+ui32}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+get\+\_\+ui32}]{\setlength{\rightskip}{0pt plus 5cm}uint32\+\_\+t krpc\+\_\+number\+\_\+get\+\_\+ui32 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00119_gabc1d9560a6f2baf606c4a232488ee76a_gabc1d9560a6f2baf606c4a232488ee76a}


获取无符号32位 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
无符号32位 
\end{DoxyReturn}
\hypertarget{a00119_ga951b99916dd94a6d8c5ad335578c35d7_ga951b99916dd94a6d8c5ad335578c35d7}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+get\+\_\+ui64@{krpc\+\_\+number\+\_\+get\+\_\+ui64}}
\index{krpc\+\_\+number\+\_\+get\+\_\+ui64@{krpc\+\_\+number\+\_\+get\+\_\+ui64}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+get\+\_\+ui64}]{\setlength{\rightskip}{0pt plus 5cm}uint64\+\_\+t krpc\+\_\+number\+\_\+get\+\_\+ui64 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00119_ga951b99916dd94a6d8c5ad335578c35d7_ga951b99916dd94a6d8c5ad335578c35d7}


获取无符号64位 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
无符号64位 
\end{DoxyReturn}
\hypertarget{a00119_ga921ba1649bda27068e3d048b854ed708_ga921ba1649bda27068e3d048b854ed708}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+get\+\_\+ui8@{krpc\+\_\+number\+\_\+get\+\_\+ui8}}
\index{krpc\+\_\+number\+\_\+get\+\_\+ui8@{krpc\+\_\+number\+\_\+get\+\_\+ui8}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+get\+\_\+ui8}]{\setlength{\rightskip}{0pt plus 5cm}uint8\+\_\+t krpc\+\_\+number\+\_\+get\+\_\+ui8 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00119_ga921ba1649bda27068e3d048b854ed708_ga921ba1649bda27068e3d048b854ed708}


获取无符号8位 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
无符号8位 
\end{DoxyReturn}
\hypertarget{a00119_ga0e16d4b0c82cb88b148e82bc076a840c_ga0e16d4b0c82cb88b148e82bc076a840c}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+set\+\_\+f32@{krpc\+\_\+number\+\_\+set\+\_\+f32}}
\index{krpc\+\_\+number\+\_\+set\+\_\+f32@{krpc\+\_\+number\+\_\+set\+\_\+f32}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+set\+\_\+f32}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+number\+\_\+set\+\_\+f32 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{{\bf float32\+\_\+t}}]{f32}
\end{DoxyParamCaption}
)}\label{a00119_ga0e16d4b0c82cb88b148e82bc076a840c_ga0e16d4b0c82cb88b148e82bc076a840c}


设置数字 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em f32} & 浮点数32位 \\
\hline
\end{DoxyParams}
\hypertarget{a00119_ga8aeb77dbdf5aaab4bb75f57ee0ddd8b9_ga8aeb77dbdf5aaab4bb75f57ee0ddd8b9}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+set\+\_\+f64@{krpc\+\_\+number\+\_\+set\+\_\+f64}}
\index{krpc\+\_\+number\+\_\+set\+\_\+f64@{krpc\+\_\+number\+\_\+set\+\_\+f64}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+set\+\_\+f64}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+number\+\_\+set\+\_\+f64 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{{\bf float64\+\_\+t}}]{f64}
\end{DoxyParamCaption}
)}\label{a00119_ga8aeb77dbdf5aaab4bb75f57ee0ddd8b9_ga8aeb77dbdf5aaab4bb75f57ee0ddd8b9}


设置数字 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em f64} & 浮点数64位 \\
\hline
\end{DoxyParams}
\hypertarget{a00119_ga1b6cbaa51e2171bec6e5b2f97fe6223c_ga1b6cbaa51e2171bec6e5b2f97fe6223c}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+set\+\_\+i16@{krpc\+\_\+number\+\_\+set\+\_\+i16}}
\index{krpc\+\_\+number\+\_\+set\+\_\+i16@{krpc\+\_\+number\+\_\+set\+\_\+i16}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+set\+\_\+i16}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+number\+\_\+set\+\_\+i16 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{int16\+\_\+t}]{i16}
\end{DoxyParamCaption}
)}\label{a00119_ga1b6cbaa51e2171bec6e5b2f97fe6223c_ga1b6cbaa51e2171bec6e5b2f97fe6223c}


设置数字 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em i16} & 有符号16位 \\
\hline
\end{DoxyParams}
\hypertarget{a00119_gaf70d32f6fb59d76e67e596d0feeee14b_gaf70d32f6fb59d76e67e596d0feeee14b}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+set\+\_\+i32@{krpc\+\_\+number\+\_\+set\+\_\+i32}}
\index{krpc\+\_\+number\+\_\+set\+\_\+i32@{krpc\+\_\+number\+\_\+set\+\_\+i32}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+set\+\_\+i32}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+number\+\_\+set\+\_\+i32 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{int32\+\_\+t}]{i32}
\end{DoxyParamCaption}
)}\label{a00119_gaf70d32f6fb59d76e67e596d0feeee14b_gaf70d32f6fb59d76e67e596d0feeee14b}


设置数字 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em i32} & 有符号32位 \\
\hline
\end{DoxyParams}
\hypertarget{a00119_gabf92e2dab46131d75789812059214724_gabf92e2dab46131d75789812059214724}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+set\+\_\+i64@{krpc\+\_\+number\+\_\+set\+\_\+i64}}
\index{krpc\+\_\+number\+\_\+set\+\_\+i64@{krpc\+\_\+number\+\_\+set\+\_\+i64}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+set\+\_\+i64}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+number\+\_\+set\+\_\+i64 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{int64\+\_\+t}]{i64}
\end{DoxyParamCaption}
)}\label{a00119_gabf92e2dab46131d75789812059214724_gabf92e2dab46131d75789812059214724}


设置数字 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em i64} & 有符号64位 \\
\hline
\end{DoxyParams}
\hypertarget{a00119_gac97afef390289879f19cda9149beb684_gac97afef390289879f19cda9149beb684}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+set\+\_\+i8@{krpc\+\_\+number\+\_\+set\+\_\+i8}}
\index{krpc\+\_\+number\+\_\+set\+\_\+i8@{krpc\+\_\+number\+\_\+set\+\_\+i8}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+set\+\_\+i8}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+number\+\_\+set\+\_\+i8 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{int8\+\_\+t}]{i8}
\end{DoxyParamCaption}
)}\label{a00119_gac97afef390289879f19cda9149beb684_gac97afef390289879f19cda9149beb684}


设置数字 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em i8} & 有符号8位 \\
\hline
\end{DoxyParams}
\hypertarget{a00119_ga7990cb68203c5ab0d1534ef616fd1aad_ga7990cb68203c5ab0d1534ef616fd1aad}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+set\+\_\+ui16@{krpc\+\_\+number\+\_\+set\+\_\+ui16}}
\index{krpc\+\_\+number\+\_\+set\+\_\+ui16@{krpc\+\_\+number\+\_\+set\+\_\+ui16}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+set\+\_\+ui16}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+number\+\_\+set\+\_\+ui16 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{uint16\+\_\+t}]{ui16}
\end{DoxyParamCaption}
)}\label{a00119_ga7990cb68203c5ab0d1534ef616fd1aad_ga7990cb68203c5ab0d1534ef616fd1aad}


设置数字 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em ui16} & 无符号16位 \\
\hline
\end{DoxyParams}
\hypertarget{a00119_gaf864070d7b20a77c9191acbe49f9382f_gaf864070d7b20a77c9191acbe49f9382f}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+set\+\_\+ui32@{krpc\+\_\+number\+\_\+set\+\_\+ui32}}
\index{krpc\+\_\+number\+\_\+set\+\_\+ui32@{krpc\+\_\+number\+\_\+set\+\_\+ui32}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+set\+\_\+ui32}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+number\+\_\+set\+\_\+ui32 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{uint32\+\_\+t}]{ui32}
\end{DoxyParamCaption}
)}\label{a00119_gaf864070d7b20a77c9191acbe49f9382f_gaf864070d7b20a77c9191acbe49f9382f}


设置数字 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em ui32} & 无符号32位 \\
\hline
\end{DoxyParams}
\hypertarget{a00119_gafd0da43f7cb46188c6d2f1657b39c3ba_gafd0da43f7cb46188c6d2f1657b39c3ba}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+set\+\_\+ui64@{krpc\+\_\+number\+\_\+set\+\_\+ui64}}
\index{krpc\+\_\+number\+\_\+set\+\_\+ui64@{krpc\+\_\+number\+\_\+set\+\_\+ui64}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+set\+\_\+ui64}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+number\+\_\+set\+\_\+ui64 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{int64\+\_\+t}]{ui64}
\end{DoxyParamCaption}
)}\label{a00119_gafd0da43f7cb46188c6d2f1657b39c3ba_gafd0da43f7cb46188c6d2f1657b39c3ba}


设置数字 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em ui64} & 无符号64位 \\
\hline
\end{DoxyParams}
\hypertarget{a00119_ga0abbc84b15e73781209485cbfa4d2a56_ga0abbc84b15e73781209485cbfa4d2a56}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+number\+\_\+set\+\_\+ui8@{krpc\+\_\+number\+\_\+set\+\_\+ui8}}
\index{krpc\+\_\+number\+\_\+set\+\_\+ui8@{krpc\+\_\+number\+\_\+set\+\_\+ui8}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+number\+\_\+set\+\_\+ui8}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+number\+\_\+set\+\_\+ui8 (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{uint8\+\_\+t}]{ui8}
\end{DoxyParamCaption}
)}\label{a00119_ga0abbc84b15e73781209485cbfa4d2a56_ga0abbc84b15e73781209485cbfa4d2a56}


设置数字 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em ui8} & 无符号8位 \\
\hline
\end{DoxyParams}
\hypertarget{a00119_gac0a05f116ee7164ceebf6f7fabcf46cf_gac0a05f116ee7164ceebf6f7fabcf46cf}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+object\+\_\+check\+\_\+type@{krpc\+\_\+object\+\_\+check\+\_\+type}}
\index{krpc\+\_\+object\+\_\+check\+\_\+type@{krpc\+\_\+object\+\_\+check\+\_\+type}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+object\+\_\+check\+\_\+type}]{\setlength{\rightskip}{0pt plus 5cm}int krpc\+\_\+object\+\_\+check\+\_\+type (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{{\bf knet\+\_\+rpc\+\_\+type\+\_\+e}}]{type}
\end{DoxyParamCaption}
)}\label{a00119_gac0a05f116ee7164ceebf6f7fabcf46cf_gac0a05f116ee7164ceebf6f7fabcf46cf}


测试\+R\+P\+C对象类型 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em type} & 类型 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em 0} & 不是type类型 \\
\hline
{\em 非零} & 是type类型 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00119_ga6aad58d8460944596e39822181bf4848_ga6aad58d8460944596e39822181bf4848}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+object\+\_\+create@{krpc\+\_\+object\+\_\+create}}
\index{krpc\+\_\+object\+\_\+create@{krpc\+\_\+object\+\_\+create}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+object\+\_\+create}]{\setlength{\rightskip}{0pt plus 5cm}{\bf krpc\+\_\+object\+\_\+t}$\ast$ krpc\+\_\+object\+\_\+create (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}\label{a00119_ga6aad58d8460944596e39822181bf4848_ga6aad58d8460944596e39822181bf4848}


所有set类方法调用时确定krpc\+\_\+object\+\_\+t实际类型，类型一旦确定不能再次更改 

建立\+R\+P\+C对象 \begin{DoxyReturn}{返回}
krpc\+\_\+object\+\_\+t实例 
\end{DoxyReturn}
\hypertarget{a00119_ga8bb578f8ba5a8de682a1fe2a4c8a20f6_ga8bb578f8ba5a8de682a1fe2a4c8a20f6}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+object\+\_\+destroy@{krpc\+\_\+object\+\_\+destroy}}
\index{krpc\+\_\+object\+\_\+destroy@{krpc\+\_\+object\+\_\+destroy}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+object\+\_\+destroy}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+object\+\_\+destroy (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00119_ga8bb578f8ba5a8de682a1fe2a4c8a20f6_ga8bb578f8ba5a8de682a1fe2a4c8a20f6}


销毁\+R\+P\+C对象 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\hypertarget{a00119_gad51ebf7392be0ee1fd9597aa22a43015_gad51ebf7392be0ee1fd9597aa22a43015}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+object\+\_\+get\+\_\+marshal\+\_\+size@{krpc\+\_\+object\+\_\+get\+\_\+marshal\+\_\+size}}
\index{krpc\+\_\+object\+\_\+get\+\_\+marshal\+\_\+size@{krpc\+\_\+object\+\_\+get\+\_\+marshal\+\_\+size}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+object\+\_\+get\+\_\+marshal\+\_\+size}]{\setlength{\rightskip}{0pt plus 5cm}uint16\+\_\+t krpc\+\_\+object\+\_\+get\+\_\+marshal\+\_\+size (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00119_gad51ebf7392be0ee1fd9597aa22a43015_gad51ebf7392be0ee1fd9597aa22a43015}


取得序列化后的长度 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
取得序列化后的长度 
\end{DoxyReturn}
\hypertarget{a00119_ga77cc2dde006f9cdddf078289159bd514_ga77cc2dde006f9cdddf078289159bd514}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+object\+\_\+marshal@{krpc\+\_\+object\+\_\+marshal}}
\index{krpc\+\_\+object\+\_\+marshal@{krpc\+\_\+object\+\_\+marshal}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+object\+\_\+marshal}]{\setlength{\rightskip}{0pt plus 5cm}int krpc\+\_\+object\+\_\+marshal (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{{\bf kstream\+\_\+t} $\ast$}]{stream, }
\item[{uint16\+\_\+t $\ast$}]{bytes}
\end{DoxyParamCaption}
)}\label{a00119_ga77cc2dde006f9cdddf078289159bd514_ga77cc2dde006f9cdddf078289159bd514}


序列化到数据流 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em stream} & kstream\+\_\+t实例 \\
\hline
{\em bytes} & 写入流的数据字节数 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em error\+\_\+ok} & 成功 \\
\hline
{\em 其他} & 失败 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00119_ga32ed12c4faa68e258582b239b46fd180_ga32ed12c4faa68e258582b239b46fd180}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+object\+\_\+marshal\+\_\+buffer@{krpc\+\_\+object\+\_\+marshal\+\_\+buffer}}
\index{krpc\+\_\+object\+\_\+marshal\+\_\+buffer@{krpc\+\_\+object\+\_\+marshal\+\_\+buffer}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+object\+\_\+marshal\+\_\+buffer}]{\setlength{\rightskip}{0pt plus 5cm}int krpc\+\_\+object\+\_\+marshal\+\_\+buffer (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{char $\ast$}]{buffer, }
\item[{uint16\+\_\+t}]{length, }
\item[{uint16\+\_\+t $\ast$}]{bytes}
\end{DoxyParamCaption}
)}\label{a00119_ga32ed12c4faa68e258582b239b46fd180_ga32ed12c4faa68e258582b239b46fd180}


序列化到缓冲区 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em buffer} & 缓冲区指针 \\
\hline
{\em length} & 缓冲区长度 \\
\hline
{\em bytes} & 写入缓冲区的数据字节数 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em error\+\_\+ok} & 成功 \\
\hline
{\em 其他} & 失败 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00119_ga3e61d7f696fd28c1cb4152037e4cc3c8_ga3e61d7f696fd28c1cb4152037e4cc3c8}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+object\+\_\+unmarshal@{krpc\+\_\+object\+\_\+unmarshal}}
\index{krpc\+\_\+object\+\_\+unmarshal@{krpc\+\_\+object\+\_\+unmarshal}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+object\+\_\+unmarshal}]{\setlength{\rightskip}{0pt plus 5cm}int krpc\+\_\+object\+\_\+unmarshal (
\begin{DoxyParamCaption}
\item[{{\bf kstream\+\_\+t} $\ast$}]{stream, }
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$$\ast$}]{o, }
\item[{uint16\+\_\+t $\ast$}]{bytes}
\end{DoxyParamCaption}
)}\label{a00119_ga3e61d7f696fd28c1cb4152037e4cc3c8_ga3e61d7f696fd28c1cb4152037e4cc3c8}


从数据流反序列化对象 


\begin{DoxyParams}{参数}
{\em stream} & kstream\+\_\+t实例 \\
\hline
{\em o} & 存储得到的对象指针 \\
\hline
{\em bytes} & 读取的流数据字节数 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em error\+\_\+ok} & 成功 \\
\hline
{\em 其他} & 失败 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00119_ga0f2289e356949bc9ae0e8e0a151e42f4_ga0f2289e356949bc9ae0e8e0a151e42f4}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+object\+\_\+unmarshal\+\_\+buffer@{krpc\+\_\+object\+\_\+unmarshal\+\_\+buffer}}
\index{krpc\+\_\+object\+\_\+unmarshal\+\_\+buffer@{krpc\+\_\+object\+\_\+unmarshal\+\_\+buffer}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+object\+\_\+unmarshal\+\_\+buffer}]{\setlength{\rightskip}{0pt plus 5cm}int krpc\+\_\+object\+\_\+unmarshal\+\_\+buffer (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{buffer, }
\item[{uint16\+\_\+t}]{size, }
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$$\ast$}]{o, }
\item[{uint16\+\_\+t $\ast$}]{bytes}
\end{DoxyParamCaption}
)}\label{a00119_ga0f2289e356949bc9ae0e8e0a151e42f4_ga0f2289e356949bc9ae0e8e0a151e42f4}


从缓冲区反序列化对象 


\begin{DoxyParams}{参数}
{\em buffer} & 缓冲区指针 \\
\hline
{\em size} & 缓冲区长度 \\
\hline
{\em o} & 存储得到的对象指针 \\
\hline
{\em bytes} & 消耗的字节数 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em error\+\_\+ok} & 成功 \\
\hline
{\em 其他} & 失败 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00119_ga4cbbacb71688aa9ee2c5811076132bce_ga4cbbacb71688aa9ee2c5811076132bce}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+string\+\_\+get@{krpc\+\_\+string\+\_\+get}}
\index{krpc\+\_\+string\+\_\+get@{krpc\+\_\+string\+\_\+get}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+string\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ krpc\+\_\+string\+\_\+get (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00119_ga4cbbacb71688aa9ee2c5811076132bce_ga4cbbacb71688aa9ee2c5811076132bce}


获取字符串指针 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
字符串指针 
\end{DoxyReturn}
\hypertarget{a00119_ga1de7973df219a3f8d3f466d27ba8c080_ga1de7973df219a3f8d3f466d27ba8c080}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+string\+\_\+get\+\_\+size@{krpc\+\_\+string\+\_\+get\+\_\+size}}
\index{krpc\+\_\+string\+\_\+get\+\_\+size@{krpc\+\_\+string\+\_\+get\+\_\+size}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+string\+\_\+get\+\_\+size}]{\setlength{\rightskip}{0pt plus 5cm}uint16\+\_\+t krpc\+\_\+string\+\_\+get\+\_\+size (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00119_ga1de7973df219a3f8d3f466d27ba8c080_ga1de7973df219a3f8d3f466d27ba8c080}


获取字符串长度，包含结尾符 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
字符串长度 
\end{DoxyReturn}
\hypertarget{a00119_ga6985230e52d14d9e6d1f0de75a7c2f93_ga6985230e52d14d9e6d1f0de75a7c2f93}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+string\+\_\+set@{krpc\+\_\+string\+\_\+set}}
\index{krpc\+\_\+string\+\_\+set@{krpc\+\_\+string\+\_\+set}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+string\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+string\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{const char $\ast$}]{s}
\end{DoxyParamCaption}
)}\label{a00119_ga6985230e52d14d9e6d1f0de75a7c2f93_ga6985230e52d14d9e6d1f0de75a7c2f93}


设置字符串 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em s} & 字符串指针 \\
\hline
\end{DoxyParams}
\hypertarget{a00119_ga478faec6f30727235d29aaeb8d54f22f_ga478faec6f30727235d29aaeb8d54f22f}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+string\+\_\+set\+\_\+s@{krpc\+\_\+string\+\_\+set\+\_\+s}}
\index{krpc\+\_\+string\+\_\+set\+\_\+s@{krpc\+\_\+string\+\_\+set\+\_\+s}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+string\+\_\+set\+\_\+s}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+string\+\_\+set\+\_\+s (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{const char $\ast$}]{s, }
\item[{uint16\+\_\+t}]{size}
\end{DoxyParamCaption}
)}\label{a00119_ga478faec6f30727235d29aaeb8d54f22f_ga478faec6f30727235d29aaeb8d54f22f}


设置字符串 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em size} & 字符串长度，包含结尾符 \\
\hline
{\em s} & 字符串指针 \\
\hline
\end{DoxyParams}
\hypertarget{a00095_af0d124108915f859d85fccd58facf12f_af0d124108915f859d85fccd58facf12f}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+string\+\_\+set\+\_\+size@{krpc\+\_\+string\+\_\+set\+\_\+size}}
\index{krpc\+\_\+string\+\_\+set\+\_\+size@{krpc\+\_\+string\+\_\+set\+\_\+size}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+string\+\_\+set\+\_\+size}]{\setlength{\rightskip}{0pt plus 5cm}int krpc\+\_\+string\+\_\+set\+\_\+size (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{uint16\+\_\+t}]{size}
\end{DoxyParamCaption}
)}\label{a00095_af0d124108915f859d85fccd58facf12f_af0d124108915f859d85fccd58facf12f}


设置字符串长度 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em size} & 长度 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em error\+\_\+ok} & 成功 \\
\hline
{\em 其他} & 失败 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00119_ga02d5eeffe865f129911f42ffbfa0d119_ga02d5eeffe865f129911f42ffbfa0d119}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+vector\+\_\+clear@{krpc\+\_\+vector\+\_\+clear}}
\index{krpc\+\_\+vector\+\_\+clear@{krpc\+\_\+vector\+\_\+clear}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+vector\+\_\+clear}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+vector\+\_\+clear (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{v}
\end{DoxyParamCaption}
)}\label{a00119_ga02d5eeffe865f129911f42ffbfa0d119_ga02d5eeffe865f129911f42ffbfa0d119}


清空数组 


\begin{DoxyParams}{参数}
{\em v} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\hypertarget{a00095_a13be7946c84baeebe93977ef511e125f_a13be7946c84baeebe93977ef511e125f}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+vector\+\_\+enlarge@{krpc\+\_\+vector\+\_\+enlarge}}
\index{krpc\+\_\+vector\+\_\+enlarge@{krpc\+\_\+vector\+\_\+enlarge}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+vector\+\_\+enlarge}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+vector\+\_\+enlarge (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00095_a13be7946c84baeebe93977ef511e125f_a13be7946c84baeebe93977ef511e125f}


扩展数组 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\hypertarget{a00119_ga0291a0548378269354fc614712f4c31e_ga0291a0548378269354fc614712f4c31e}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+vector\+\_\+get@{krpc\+\_\+vector\+\_\+get}}
\index{krpc\+\_\+vector\+\_\+get@{krpc\+\_\+vector\+\_\+get}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+vector\+\_\+get}]{\setlength{\rightskip}{0pt plus 5cm}{\bf krpc\+\_\+object\+\_\+t}$\ast$ krpc\+\_\+vector\+\_\+get (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{v, }
\item[{int}]{index}
\end{DoxyParamCaption}
)}\label{a00119_ga0291a0548378269354fc614712f4c31e_ga0291a0548378269354fc614712f4c31e}


按索引取得数组元素 


\begin{DoxyParams}{参数}
{\em v} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em index} & 下标索引 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
数组元素 
\end{DoxyReturn}
\hypertarget{a00119_gac86bb807e52193aaa69ce6fe36cd59c8_gac86bb807e52193aaa69ce6fe36cd59c8}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+vector\+\_\+get\+\_\+size@{krpc\+\_\+vector\+\_\+get\+\_\+size}}
\index{krpc\+\_\+vector\+\_\+get\+\_\+size@{krpc\+\_\+vector\+\_\+get\+\_\+size}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+vector\+\_\+get\+\_\+size}]{\setlength{\rightskip}{0pt plus 5cm}uint32\+\_\+t krpc\+\_\+vector\+\_\+get\+\_\+size (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{v}
\end{DoxyParamCaption}
)}\label{a00119_gac86bb807e52193aaa69ce6fe36cd59c8_gac86bb807e52193aaa69ce6fe36cd59c8}


取得数组元素个数 


\begin{DoxyParams}{参数}
{\em v} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
数组元素个数 
\end{DoxyReturn}
\hypertarget{a00119_gac870fa910b5e155c9f566ead4fac2b54_gac870fa910b5e155c9f566ead4fac2b54}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+vector\+\_\+push\+\_\+back@{krpc\+\_\+vector\+\_\+push\+\_\+back}}
\index{krpc\+\_\+vector\+\_\+push\+\_\+back@{krpc\+\_\+vector\+\_\+push\+\_\+back}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+vector\+\_\+push\+\_\+back}]{\setlength{\rightskip}{0pt plus 5cm}int krpc\+\_\+vector\+\_\+push\+\_\+back (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{v, }
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00119_gac870fa910b5e155c9f566ead4fac2b54_gac870fa910b5e155c9f566ead4fac2b54}


添加到数组尾，数组默认长度为8，每次递增8 


\begin{DoxyParams}{参数}
{\em v} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em o} & 新增的数组元素 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em error\+\_\+ok} & 成功 \\
\hline
{\em 其他} & 失败 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00119_gaf08956a35d983893f382974abcfca177_gaf08956a35d983893f382974abcfca177}{}\index{rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}!krpc\+\_\+vector\+\_\+set@{krpc\+\_\+vector\+\_\+set}}
\index{krpc\+\_\+vector\+\_\+set@{krpc\+\_\+vector\+\_\+set}!rpc\+\_\+object.\+c@{rpc\+\_\+object.\+c}}
\subsubsection[{krpc\+\_\+vector\+\_\+set}]{\setlength{\rightskip}{0pt plus 5cm}int krpc\+\_\+vector\+\_\+set (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{v, }
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{int}]{index}
\end{DoxyParamCaption}
)}\label{a00119_gaf08956a35d983893f382974abcfca177_gaf08956a35d983893f382974abcfca177}


按索引设置数组元素，若已存在元素则销毁旧元素 


\begin{DoxyParams}{参数}
{\em v} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em o} & 新元素 \\
\hline
{\em index} & 下标索引 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em error\+\_\+ok} & 成功 \\
\hline
{\em 其他} & 失败 \\
\hline
\end{DoxyRetVals}
